package com.simon.seckill.Exceptions;

public class SeckillExceptions extends RuntimeException  {
    private static final long serialVersionUID = -3992962807763740333L;
    private String errorCode;
    private String errorInfo;

    public SeckillExceptions() {
    }

    public SeckillExceptions(String errorCode, String errorInfo) {
        this.errorCode = errorCode;
        this.errorInfo = errorInfo;
    }

    public SeckillExceptions(String errorInfo) {
        this.errorInfo = errorInfo;
    }

    public String getErrorCode() {
        return this.errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorInfo() {
        return this.errorInfo;
    }

    public void setErrorInfo(String errorInfo) {
        this.errorInfo = errorInfo;
    }
}
